package com.ztgf.commodity.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ztgf.commodity.models.dto.CommodityUnitDTO;
import com.ztgf.commodity.models.vo.CommodityCategoryUnitVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * author: chenyu.wang
 * date: 2020-05-26 11:57
 * Description:
 */
@Mapper
public interface CommodityUnitMapper extends BaseMapper<CommodityUnitDTO> {

    /**
     * description: 查询商品分类单位
     * param: [categoryId]
     * author: chenyu.wang
     * date: 2020-07-23
     * return: java.util.List<com.ztgf.commodity.models.vo.CommodityCategoryUnitVO>
     */
    List<CommodityCategoryUnitVO> queryCategoryUnit(@Param("categoryId") Long categoryId, @Param("brandId") Long brandId);

    String getUnitids();
}
